package abstracts;

/**
 * @author chihb
 * @create-time 2024/6/22 22:03
 * @description
 */
public class template {
    public static void main(String[] args) {
        //目标：搞清楚抽象类的应用场景之一，经常用来设计模板方法设计模式
        Teacher t=new Teacher();
        t.write();
        System.out.println("------------------------------");
        Student s=new Student();
        s.write();
    }
}
